package com.hboxs.asl.event;

import com.hboxs.asl.entity.Member;
import org.springframework.context.ApplicationEvent;

/**
 * Created by Terry on 2017/5/4.
 */
public abstract class MemberEvent extends ApplicationEvent{

    private static final long serialVersionUID = 7432438231982667326L;

    /**
     * 会员
     */
    private Member member;

    /**
     * 构造方法
     *
     * @param source 事件源
     * @param member 会员
     */
    public MemberEvent(Object source, Member member) {
        super(source);
        this.member = member;
    }

    /**
     * 获取会员
     *
     * @return 会员
     */
    public Member getMember() {
        return member;
    }

}
